﻿using System;
using OA.DBUtility;

namespace OA.Model
{
    /// <summary>
    /// Training:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    [MappingTable("Training")]
    public partial class TrainingInfo
    {
        public TrainingInfo()
        {
        }

        #region Model

        private int _id;
        private DateTime? _starttime;
        private DateTime? _finishedtime;
        private string _traininginstitutions;
        private string _trainingcourse;
        private string _certification;
        private string _certificationNo;
        [DataField("CertificationNo")]
        public string CertificationNo
        {
            get { return _certificationNo; }
            set { _certificationNo = value; }
        }
        private decimal? _trainingfee;
        private int? _classhour;
        private string _lecturer;
        //private string _employeename;
        //private int _employeeid;
        private string _trainingType;
        [DataField("TrainingType")]
        public string TrainingType
        {
            get { return _trainingType; }
            set { _trainingType = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("Id")]
        [PrimaryKey(PKBuildType.AutoIncrease)]
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("StartTime")]
        public DateTime? StartTime
        {
            set { _starttime = value; }
            get { return _starttime; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("FinishedTime")]
        public DateTime? FinishedTime
        {
            set { _finishedtime = value; }
            get { return _finishedtime; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("TrainingInstitutions")]
        public string TrainingInstitutions
        {
            set { _traininginstitutions = value; }
            get { return _traininginstitutions; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("TrainingCourse")]
        public string TrainingCourse
        {
            set { _trainingcourse = value; }
            get { return _trainingcourse; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("Certification")]
        public string Certification
        {
            set { _certification = value; }
            get { return _certification; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("TrainingFee")]
        public decimal? TrainingFee
        {
            set { _trainingfee = value; }
            get { return _trainingfee; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("ClassHour")]
        public int? ClassHour
        {
            set { _classhour = value; }
            get { return _classhour; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("Lecturer")]
        public string Lecturer
        {
            set { _lecturer = value; }
            get { return _lecturer; }
        }

        ///// <summary>
        ///// 
        ///// </summary>
        //[DataField("EmployeeName")]
        //public string EmployeeName
        //{
        //    set { _employeename = value; }
        //    get { return _employeename; }
        //}

        ///// <summary>
        ///// 
        ///// </summary>
        //[DataField("EmployeeId")]
        //public int EmployeeId
        //{
        //    set { _employeeid = value; }
        //    get { return _employeeid; }
        //}

        #endregion Model

    }
}

